package com.woniuxy.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.woniuxy.entity.ClientBill;
import com.woniuxy.entity.ClientRecharge;
import com.woniuxy.service.ClientBillService;
import com.woniuxy.utils.Result;

@Controller
@RequestMapping("/clientbill")
public class ClientBillController {
	@Autowired
	private ClientBillService clientBillService;
	@RequestMapping("/all")
	@ResponseBody
	public Result<List<ClientBill>> all(){
		Result<List<ClientBill>> result = new Result<>();
		result.setData(clientBillService.all());
		return result;
		
	}
}
